﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<agent02.Model.TravelSearchResultModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Search Result
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Search Result</h2>

    <table>
        <tr>
            <th>
                TourName
            </th>
            <th>
                VisitLocation
            </th>
            <th>
                TourImage
            </th>
            <th>
                DayNight
            </th>
            <th>
                StartDay
            </th>
            <th>
                EndDay
            </th>
            <th>
                Price
            </th>
            <th>
                Unit
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model.listTour) { %>
    
        <tr>
            <td>
                <%: item.TourName %>
            </td>
            <td>
                <%: item.VisitLocation %>
            </td>
            <td>
                <%: item.TourImage %>
            </td>
            <td>
                <%: item.DayNight %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.StartDay) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.EndDay) %>
            </td>
            <td>
                <%: item.Price * Model.heSo %>
            </td>
            <td>
                <%: item.Unit %>
            </td>
            <td>
                <%: Html.ActionLink("View More", "Details", new { tripID=item.TripId })%>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>

